/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class WaterQualityDetector {
    static categoryCode = '010030021';

    static categoryName = '水质检测仪';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return WaterQualityDetector.categoryCode;
    }

    get categoryName() {
        return WaterQualityDetector.categoryName;
    }

    getAmmonia(params) {
        return command({
            method: 'getAmmonia',
            methodId: 'pXZu75iE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBlueGreenAlgae(params) {
        return command({
            method: 'getBlueGreenAlgae',
            methodId: 'pWG01FbK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCOD(params) {
        return command({
            method: 'getCOD',
            methodId: 'p1vFjxYG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChlorideIon(params) {
        return command({
            method: 'getChlorideIon',
            methodId: 'pDrhFbNx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChlorineDioxide(params) {
        return command({
            method: 'getChlorineDioxide',
            methodId: 'UmaS3OU5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChlorophyll(params) {
        return command({
            method: 'getChlorophyll',
            methodId: 'ptRS9DEk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getConductivity(params) {
        return command({
            method: 'getConductivity',
            methodId: 'pz93iMQW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDissolvedOxygen(params) {
        return command({
            method: 'getDissolvedOxygen',
            methodId: 'pBTQtl2I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFluorideIon(params) {
        return command({
            method: 'getFluorideIon',
            methodId: 'pj7xBmt9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLowRangeLaserTurbidity(params) {
        return command({
            method: 'getLowRangeLaserTurbidity',
            methodId: 'pkp1q4rR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNitrate(params) {
        return command({
            method: 'getNitrate',
            methodId: 'phEqKY5q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getORP(params) {
        return command({
            method: 'getORP',
            methodId: 'pGoxHGg3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOilInWater(params) {
        return command({
            method: 'getOilInWater',
            methodId: 'pdN7zs11',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOzone(params) {
        return command({
            method: 'getOzone',
            methodId: 'pgh0mcOb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPH(params) {
        return command({
            method: 'getPH',
            methodId: 'pZgRT3pV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getResidualChlorine(params) {
        return command({
            method: 'getResidualChlorine',
            methodId: 'pUPQ8VLS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSalinity(params) {
        return command({
            method: 'getSalinity',
            methodId: 'pqYhWwWM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSludgeConcentration(params) {
        return command({
            method: 'getSludgeConcentration',
            methodId: 'UnfcbfLl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSuspendedSolids(params) {
        return command({
            method: 'getSuspendedSolids',
            methodId: 'pNnZEPBn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ppAXISbL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTDS(params) {
        return command({
            method: 'getTDS',
            methodId: 'UODeXyYP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'UaMCfjKm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTurbidity(params) {
        return command({
            method: 'getTurbidity',
            methodId: 'p0crOKuz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterHardness(params) {
        return command({
            method: 'getWaterHardness',
            methodId: 'p3deou3o',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3nfWZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default WaterQualityDetector;
